﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200044D RID: 1101
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterChallengeNextPhaseScRsp : IMessage<EnterChallengeNextPhaseScRsp>, IMessage, IEquatable<EnterChallengeNextPhaseScRsp>, IDeepCloneable<EnterChallengeNextPhaseScRsp>, IBufferMessage
	{
		// Token: 0x17000E27 RID: 3623
		// (get) Token: 0x0600317C RID: 12668 RVA: 0x00088055 File Offset: 0x00086255
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterChallengeNextPhaseScRsp> Parser
		{
			get
			{
				return EnterChallengeNextPhaseScRsp._parser;
			}
		}

		// Token: 0x17000E28 RID: 3624
		// (get) Token: 0x0600317D RID: 12669 RVA: 0x0008805C File Offset: 0x0008625C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterChallengeNextPhaseScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E29 RID: 3625
		// (get) Token: 0x0600317E RID: 12670 RVA: 0x0008806E File Offset: 0x0008626E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterChallengeNextPhaseScRsp.Descriptor;
			}
		}

		// Token: 0x0600317F RID: 12671 RVA: 0x00088075 File Offset: 0x00086275
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterChallengeNextPhaseScRsp()
		{
		}

		// Token: 0x06003180 RID: 12672 RVA: 0x00088080 File Offset: 0x00086280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterChallengeNextPhaseScRsp(EnterChallengeNextPhaseScRsp other) : this()
		{
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003181 RID: 12673 RVA: 0x000880CC File Offset: 0x000862CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterChallengeNextPhaseScRsp Clone()
		{
			return new EnterChallengeNextPhaseScRsp(this);
		}

		// Token: 0x17000E2A RID: 3626
		// (get) Token: 0x06003182 RID: 12674 RVA: 0x000880D4 File Offset: 0x000862D4
		// (set) Token: 0x06003183 RID: 12675 RVA: 0x000880DC File Offset: 0x000862DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17000E2B RID: 3627
		// (get) Token: 0x06003184 RID: 12676 RVA: 0x000880E5 File Offset: 0x000862E5
		// (set) Token: 0x06003185 RID: 12677 RVA: 0x000880ED File Offset: 0x000862ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003186 RID: 12678 RVA: 0x000880F6 File Offset: 0x000862F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterChallengeNextPhaseScRsp);
		}

		// Token: 0x06003187 RID: 12679 RVA: 0x00088104 File Offset: 0x00086304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterChallengeNextPhaseScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Scene, other.Scene) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003188 RID: 12680 RVA: 0x00088154 File Offset: 0x00086354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003189 RID: 12681 RVA: 0x000881A9 File Offset: 0x000863A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600318A RID: 12682 RVA: 0x000881B1 File Offset: 0x000863B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600318B RID: 12683 RVA: 0x000881BC File Offset: 0x000863BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600318C RID: 12684 RVA: 0x00088218 File Offset: 0x00086418
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600318D RID: 12685 RVA: 0x00088270 File Offset: 0x00086470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterChallengeNextPhaseScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600318E RID: 12686 RVA: 0x000882D8 File Offset: 0x000864D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600318F RID: 12687 RVA: 0x000882E4 File Offset: 0x000864E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.scene_ == null)
					{
						this.Scene = new SceneInfo();
					}
					input.ReadMessage(this.Scene);
				}
			}
		}

		// Token: 0x0400136E RID: 4974
		private static readonly MessageParser<EnterChallengeNextPhaseScRsp> _parser = new MessageParser<EnterChallengeNextPhaseScRsp>(() => new EnterChallengeNextPhaseScRsp());

		// Token: 0x0400136F RID: 4975
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001370 RID: 4976
		public const int SceneFieldNumber = 4;

		// Token: 0x04001371 RID: 4977
		private SceneInfo scene_;

		// Token: 0x04001372 RID: 4978
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04001373 RID: 4979
		private uint retcode_;
	}
}
